package com.huaxia.day9.immutable;

/**
 * 1. final 类派生子类
 * 2. final 变量赋值后不可再变
 * 3. 无set等修改属性的方法;
 */
public final class ImmutableObj {
    private final String idCard;

    public ImmutableObj(String idCard) {
        this.idCard = idCard;
    }

    public String getIdCard() {
        return this.idCard;
    }


}
